---
title: dub.analytics.clicks.count
sidebarTitle: Count
description: Retrieve total clicks count for a link, a domain, or the authenticated workspace.
---

import AnalyticsArguments from "/snippets/analytics-arguments.mdx";

<Note>
  Analytics endpoints require a [Pro plan](https://d.to/pro) subscription or
  higher.
</Note>

<AnalyticsArguments />

## Response

The number of clicks matching the specified queries.

<RequestExample>

```typescript
await dub.analytics.clicks.count({
  key: "dummy",
  domain: "dub.sh",
  interval: "30d",
});
```

</RequestExample>

<ResponseExample>

```typescript
20;
```

</ResponseExample>
